﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace NDF.XnaLibrary.Models
{
	/// <summary>
	/// Represents the action of a character casting.
	/// </summary>
	public class CastingAction
	{
		/// <summary>
		/// Initializes a new CastingActionInfo object.
		/// </summary>
		public CastingAction() : this (new Skill())
		{}

		/// <summary>
		/// Initializes a new CastingActionInfo object with the given parameter.
		/// </summary>
		/// <param name="skill">The skill that must be cast.</param>
		public CastingAction(Skill skill)
		{
			Skill = skill;
			TimePassed = TimeSpan.Zero;
		}

		/// <summary>
		/// Gets or sets the skill that must be cast.
		/// </summary>
		public Skill Skill { get; set; }

		/// <summary>
		/// Gets or sets the time passed since the beginning of the action
		/// </summary>
		public TimeSpan TimePassed { get; set; }
	}
}
